package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IDestinationService {

    void insert(Destination destination);
    void delete(String id);
    void update(Destination destination);
    Destination get(String id);
    List<Destination> list();

    List<Destination> getDestByRegionId(String rid);

    Page<Destination> query(DestinationQuery qo);

    List<Destination> queryToasts(DestinationQuery qo);

    List<Destination> queryToasts(String id);

    List<Destination> search(String regionId);
}
